package com.cskaoyan.mapper;

import com.cskaoyan.bean.Systempermissions;
import com.cskaoyan.bean.order.Order;
import com.cskaoyan.bean.order.OrderGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    List<Order> selectOrder(@Param("sort") String sort, @Param("order") String order,@Param("orderStatusArray") Integer[] orderStatusArray, @Param("start")String start, @Param("end")String end, @Param("userId")Integer userId, @Param("orderSn")Integer orderSn);

    List<OrderGoods> selectOrderGoods(@Param("orderId") Integer orderId);

    Order selectByPrimaryKey(Integer id);

    Integer updateShipById(@Param("orderId") Integer orderId,@Param("shipChannel") String shipChannel,@Param("shipSn") String shipSn);

    Integer updateRefundById(@Param("orderId")Integer orderId, @Param("refundMoney")Integer refundMoney);

}
